﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true"
    CodeFile="ProjectConfig_Dev_M.aspx.cs" Inherits="ProjectConfig_Dev_M" %>

<asp:Content ID="Content2" ContentPlaceHolderID="script" runat="Server">
    <style type="text/css">
       
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" runat="Server">
    <div class="container">
        <div class="titlebg">
            <div class="title">
                开发大纲项目与明源项目关联设置</div>
        </div>
        <div class="content">

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
                    <table style="width: 500px; margin-left: 30px; margin-top: 20px;">
                        <tr>
                            <td rowspan="3">
                                项目：<br />
                                <br />
                                <asp:ListBox ID="lb_RelationList" runat="server" DataSourceID="ODSEList" DataTextField="ProjectName"
                                    DataValueField="Id" Height="550px" Width="300px" OnSelectedIndexChanged="lb_RelationList_SelectedIndexChanged"
                                    AutoPostBack="True" Style="margin-right: 20px;"></asp:ListBox>
                            </td>
                            <td valign="top">
                                可关联明源项目：<br />
                                <br />
                                <asp:ListBox ID="lb_NoHaveBeRelationList" runat="server" Height="220px" Width="300px"
                                    DataSourceID="ODSNRList" DataTextField="Name" DataValueField="Id"></asp:ListBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table width="100%">
                                    <tr>
                                        <td>
                                            <asp:Button ID="btnAdd" runat="server" Text="添加" OnClick="btnAdd_Click" />
                                        </td>
                                        <td>
                                            <asp:Button ID="btnDel" runat="server" Text="删除" OnClick="btnDel_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td valign="bottom">
                                已关联明源项目：<br />
                                <br />
                                <asp:ListBox ID="lb_HaveBeRelationList" runat="server" Height="220px" Width="300px"
                                    DataSourceID="ODSRList" DataTextField="Name" DataValueField="Id"></asp:ListBox>
                            </td>
                        </tr>
                    </table>
                    <asp:ObjectDataSource ID="ODSEList" runat="server" SelectMethod="GetDevProjectList"
                        TypeName="PKURG.CostSplit.Business.Relation"></asp:ObjectDataSource>
                    <asp:ObjectDataSource ID="ODSRList" runat="server" SelectMethod="GetRelationList"
                        TypeName="PKURG.CostSplit.Business.Relation" OldValuesParameterFormatString="original_{0}">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="lb_RelationList" Name="id" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:Parameter DefaultValue="3" Name="rType" Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                    <asp:ObjectDataSource ID="ODSNRList" runat="server" SelectMethod="GetNoRelationList"
                        TypeName="PKURG.CostSplit.Business.Relation" OldValuesParameterFormatString="original_{0}">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="lb_RelationList" Name="id" PropertyName="SelectedValue"
                                Type="String" />
                            <asp:Parameter DefaultValue="3" Name="rType" Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                </ContentTemplate>
    </asp:UpdatePanel>
            </div>
        </div>
</asp:Content>
